using System;
using System.Web.UI.WebControls;

namespace Sedna.Core.Controller.Configurations
{
	public class DataGridColumnStyle : IDataGridColumnStyle
	{

		private HorizontalAlign horizontalAlign;
		private VerticalAlign verticalAlign;
		private bool wrap;

		public HorizontalAlign HorizontalAlign
		{
			get { return horizontalAlign; }
			set { horizontalAlign = value; }
		}

		public VerticalAlign VerticalAlign
		{
			get { return verticalAlign; }
			set { verticalAlign = value; }
		}

		public bool Wrap
		{
			get { return wrap; }
			set { wrap = value; }
		}

		public void ApplyTableItemStyle(TableItemStyle tableItemStyle)
		{
			tableItemStyle.VerticalAlign = this.verticalAlign;
			tableItemStyle.HorizontalAlign = this.horizontalAlign;
			tableItemStyle.Wrap = this.wrap;
		}
	}
}
